import request from '@/utils/request'

export function getDepartmentList(data) {
  return request({
    url: '/department/getDepartmentList',
    method: 'post',
    data
  })
}

export function addDepartment(data) {
  return request({
    url: '/department/addDepartment',
    method: 'post',
    data
  })
}

export function editDepartment(data) {
  return request({
    url: '/department/editDepartment',
    method: 'post',
    data
  })
}